package com.yssoft.entity.sales;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yssoft.entity.CommonEntity;

/**
 * 
    * @ClassName: TCustomer
    * @Description: t_customer实体
    * @author lenovo
    * @date 2018年5月17日
    *
 */
@Table(name="t_customer")
public class TCustomer extends CommonEntity {
    
    /**
    * @Fields field:field:{todo}(用一句话描述这个变量表示什么)
    */
	    
	private static final long serialVersionUID = -2495101856482010584L;

	/**
     * 主键
     */
    @Id
    @GeneratedValue(generator = "JDBC") 
    private Integer id;

    /**
     * 企业表
     */
    private Integer tEId;

    /**
     * 账号
     */
    private String name;
    /**
     * 法人姓名
     */
    private String legalPerson;
    /**
     * 联系人
     */
    private String contacts;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 收货地址
     */
    private String recAddress;
    /**
     * 社会信用代码(经销商用)
     */
    private String creditCode;
    /**
     * 类型：1-经销商 2-客户
     */
    private char type;
    /**
     * 部门id
     * @return
     */
    private Integer deptId;
    /**
     * 部门名称
     * @return
     */
    private String deptName;
    /**
     * 所属区域ID
     */
    @Transient
    private Integer areaId;
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer gettEId() {
		return tEId;
	}
	public void settEId(Integer tEId) {
		this.tEId = tEId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLegalPerson() {
		return legalPerson;
	}
	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getRecAddress() {
		return recAddress;
	}
	public void setRecAddress(String recAddress) {
		this.recAddress = recAddress;
	}
	public String getCreditCode() {
		return creditCode;
	}
	public void setCreditCode(String creditCode) {
		this.creditCode = creditCode;
	}
	public char getType() {
		return type;
	}
	public void setType(char type) {
		this.type = type;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public Integer getAreaId() {
		return areaId;
	}
	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	} 
	
}